import java.util.Arrays;

public class Test {

        public void merge(int[] nums1, int m, int[] nums2, int n) {
            n = nums2.length;
            m = nums1.length - n;
            int count = 0;
            for(int i = m;i < nums1.length;i++){
                nums1[i] = nums2[count];
                count++;
            }
            Arrays.sort(nums1);
        }
    }

